﻿using System;

namespace Bilibili.Model.User
{
    public sealed class History
    {
        public int Code { get; set; }
        public object Data { get; set; }
        public string Aid { get; set; }
        public string Cover { get; set; }
        public History Owner { get; set; }
        public string Name { get; set; }
        public string Pic { get; set; }
        public string Title { get; set; }
        public long view_at { get; set; }
        public string View_at
        {
            get
            {
                DateTime dtStart = new DateTime(1970, 1, 1);
                long lTime = long.Parse(view_at + "0000000");
                TimeSpan toNow = new TimeSpan(lTime);
                return dtStart.Add(toNow).ToString("d");
            }
        }
        public string Tname { get; set; }
        public string Kid { get; set; }
        public string Business { get; set; }
    }
}